package com.ethink.warehouse.common.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.Data;
import java.util.Date;
import com.ethink.framework.common.db.SuperEntity;

/**
 * 仓库入库单批次信息 数据库实体
 *
 * @author default
 * @date 2022-12-16
 */
@Data
@TableName("t_stock_in_order_detail_batch")
public class StockInOrderDetailBatch extends SuperEntity {

    public static final String ORDER_NO ="order_no";

    public static final String OUT_ORDER_NO ="out_order_no";

    public static final String MATE_SKU ="mate_sku";

    public static final String MATE_ITEM_ID ="mate_item_id";

    public static final String BATCH_CODE ="batch_code";

    public static final String PRODUCE_CODE ="produce_code";

    public static final String INVENTORY_TYPE ="inventory_type";

    public static final String ACTUAL_QTY ="actual_qty";

    public static final String PRODUCT_DATE ="product_date";

    public static final String EXPIRE_DATE ="expire_date";


    /** 原单据号 */
    private String orderNo;

    /** 外部入库单号 */
    private String outOrderNo;

    /** 商品SKU */
    private String mateSku;

    /** 外部仓储商品ID */
    private String mateItemId;

    /** 批次编码 */
    private String batchCode;

    /** 生产批次 */
    private String produceCode;

    /** 枚举 库存类型: 1-正品(zp)|2-残次(cc)|3-机损(js)|4-箱损(xs) */
    private Integer inventoryType;

    /** 实收数量 */
    private Integer actualQty;

    /** 商品生产日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date productDate;

    /** 商品过期日期 */
    @JsonFormat(locale="zh", timezone="GMT+8", pattern="yyyy-MM-dd")
    private Date expireDate;

}
